package com.xiaoyu.lanling.feature.profile.data

import com.xiaoyu.base.app.AppContext
import com.xiaoyu.lanling.R
import com.xiaoyu.lanling.feature.view.weight.picker.PickerModel

class UserInfoEditProvider {

    companion object {
        const val HEIGHT_DEFAULT = "167 cm"

        val instance by lazy { UserInfoEditProvider() }

        val heightList by lazy {
            val list = mutableListOf<PickerModel>()
            for (i in 150..200) {
                list.add(PickerModel(i.toString(), AppContext.getString(R.string.user_profile_height_suffix, i)))
            }
            list
        }

        val weightList by lazy {
            val list = mutableListOf<PickerModel>()
            for (i in 30..150) {
                list.add(PickerModel(i.toString(), AppContext.getString(R.string.user_profile_weight_suffix, i)))
            }
            list
        }
        val sizeList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("secret", "保密"))
                add(PickerModel("symmetry", "匀称"))
                add(PickerModel("slender", "瘦长"))
                add(PickerModel("slim", "苗条"))
                add(PickerModel("bline", "线条美"))
                add(PickerModel("plump", "丰满"))
            }
        }

        val glamorPlaceList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("smile", "笑容"))
                add(PickerModel("eyes", "眼睛"))
                add(PickerModel("hair", "头发"))
                add(PickerModel("nose", "鼻子"))
                add(PickerModel("lip", "嘴唇"))
                add(PickerModel("tooth", "牙齿"))
                add(PickerModel("neck", "颈部"))
                add(PickerModel("ear", "耳朵"))
                add(PickerModel("hand", "手"))
                add(PickerModel("arm", "胳膊"))
                add(PickerModel("chest", "胸部"))
                add(PickerModel("waist", "腰部"))
                add(PickerModel("buttock", "臀部"))
                add(PickerModel("leg", "腿部"))
                add(PickerModel("foot", "脚"))
            }
        }

        val annualIncomeList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("0-5", "5万以下"))
                add(PickerModel("5-10", "5万-10万"))
                add(PickerModel("10-20", "10万-20万"))
                add(PickerModel("20-30", "20-30万"))
                add(PickerModel("30-50", "30-50万"))
                add(PickerModel("50-100", "50-100万"))
                add(PickerModel("100+", "100万以上"))
            }
        }

        val educationDegreeList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("junior", "初中"))
                add(PickerModel("secondary", "中专"))
                add(PickerModel("senior", "高中"))
                add(PickerModel("college", "大专"))
                add(PickerModel("bachelor", "本科"))
                add(PickerModel("double", "双学士"))
                add(PickerModel("master", "硕士"))
                add(PickerModel("doctor", "博士"))
            }
        }

        val emotionStatusList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("single", "单身"))
                add(PickerModel("in_love", "恋爱中"))
                add(PickerModel("divorce", "离异"))
                add(PickerModel("widowed", "丧偶"))
                add(PickerModel("married", "已婚"))
                add(PickerModel("secrete", "保密"))
            }
        }

        val inhabitStatusList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("owner", "住自己买的房"))
                add(PickerModel("rent", "租房自住"))
                add(PickerModel("joint", "与人合租"))
                add(PickerModel("dormitory", "住宿舍"))
                add(PickerModel("with_parents", "与父母同住"))
            }
        }

        val premaritalLivingList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("accept", "接受"))
                add(PickerModel("refuse", "不接受"))
            }
        }

        val acceptDatesList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("accept", "接受"))
                add(PickerModel("refuse", "不接受"))
            }
        }

        val houseStatusList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("bought", "已购房"))
                add(PickerModel("none", "暂未购房"))
                add(PickerModel("in_plan", "计划中"))
            }
        }
        val carStatusList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("high_range", "高档"))
                add(PickerModel("mid_range", "中档"))
                add(PickerModel("low_range", "经济"))
                add(PickerModel("none", "暂未购车"))
            }
        }
        val drinkStatusList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("never", "从不"))
                add(PickerModel("occ", "偶尔"))
                add(PickerModel("often", "经常"))
            }
        }

        val cookLevelList by lazy {
            mutableListOf<PickerModel>().apply {
                add(PickerModel("chef", "厨神级"))
                add(PickerModel("daily", "家常菜好手"))
                add(PickerModel("incapable", "不会做饭"))
            }
        }
    }
}